home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8793 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: queeg.apci.net!news
  2. From: James O'Connor <oconnor@apci.net>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: C/C++ knocks the crap out of Ada
  5. Date: Mon, 26 Feb 1996 12:34:39 -0800
  6. Organization: Applied Personal Computing, Inc.
  7. Message-ID: <3132195F.349@apci.net>
  8. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com>   <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4ggshe$7bk@goanna.cs.rmit.EDU.AU> <4gmp2o$ian@ux1.lmu.edu>
  9. NNTP-Posting-Host: dialup215.apci.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. Ray Toal wrote:
  16. > ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) wrote:
  17. > >(4) C++ in particular has been changing very rapidly.  It seems as if every
  18. > >    time I turn around there is a new keyword.  I was looking at some code
  19. > >    fragments today in a book; they were full of things like
  20. > >       void HelpIndex () (RTMessage) = [CM_FIRST+CM_HelpIndex];
  21. > >    I've used three C++ compilers, read every book with "Stroustrup" on it,
  22. > >    and keep on browsing through the draft standard, and haven't the foggiest
  23. > >    notion what this is supposed to do.
  24. > That line of code was not standard C++ (not that there even is a standard
  25. > yet :-). It was a "syntax extension" that came with the Borland C++
  26. > Compiler Version 3.x as part of the ObjectWindows Framework.
  27. > Interestingly when Borland released 4.0 they removed that "syntax
  28. > extension."
  29. > I would be interested to know if any Ada vendors have released
  30. > Ada compilers with vendor-specific syntax modifications.
  31. > Ray Toal
  32.  
  33.  
  34. This was only used for a Windows application (a TWindow classs, to be 
  35. specific) to tie certain message responses (In this case a Menu choice 
  36. with an ID of CM_HelpIndex) to certain functions.  (When the (MS) window 
  37. receives the Command Message of CM_HelpIndex, it calls the C++ function 
  38. HelpIndex defiend in the TWindow subclass behind the 'Real' Window.  
  39. You're right, for OWL 2.0, they changed to a standard function 
  40. declaration and added a couple of MACROS to handle the mapping...
  41.  
  42. James O'Connor
  43. oconnor@apci.net
  44.